# Contributor: 
# Maintainer: 
pkgname=py-flask-weasyprint
pkgver=0.4
pkgrel=1
pkgdesc="flask binding to py-weasyprint"
url="https://pythonhosted.org/flask-weasyprint"
arch="noarch"
license="BSD"
depends="python2 py-weasyprint py-flask py-setuptools"
depends_dev=""
makedepends="python2-dev"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/F/Flask-WeasyPrint/Flask-WeasyPrint-$pkgver.tar.gz"

_builddir="$srcdir"/Flask-WeasyPrint-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="6d24da2c30f7d3feebc43f5081670884  Flask-WeasyPrint-0.4.tar.gz"
sha256sums="ae586c52d1b465eb196fd187d52c7a09ebb6519f9db749d7082c12d1844b78dc  Flask-WeasyPrint-0.4.tar.gz"
sha512sums="941997a553f9154fcea3d4e35e2cd3ab7d5e8b19dad91ed7fb7bbad1e413d9060b272a9e452ddb42a4d698fbcc43673323ede27dc998d8a4067b52ae0a74fca7  Flask-WeasyPrint-0.4.tar.gz"
